Cool Solutions

Generating volume_inventory.html for automation



By:

February 14, 2007 11:43 am

Reads: 3865

Comments:2

Score:0

Problem:

Generating the volume_inventory.html file requires you to log into NRM, and click on reports, then the volume you want to see the report on. Once there you can see a report of the current inventory. This however is unwieldy if you have more than just a few servers to run inventory on.

Solution:

The report will generate by going to the following url:

https://yourserver:8009/VolumeStatus/[volume]/INVENTORY2

You will need to authenticate as a server admin. This can be added in a script through wget.

Example:

wget https://yourserver:8009/VolumeStatus/[volume]/INVENTORY2--no-check-certificate --http-user=[server admin] --http-password=[password] --delete-after

replace [volume], [server admin], and [password] with appropriate values eg:

wget https://fakecompany.com:8009/VolumeStatus/SYS/INVENTORY2--no-check-certificate --http-user=.admin.fake --http-password=fakepassword --delete-after

Environment:

This was done on a NetWare 6.5 sp5. wget can be run from many different types of OS’ including NetWare.

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Categories: Uncategorized

Disclaimer: This content is not supported by Novell. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.

2 Comments

  1. By:dbrinin

    Need to do exactly this however the sugestion doesn’t seem to work. All I get is the downloaded login page not the volume inventory I was after. NW6.5 SP5 running wget on Win2K3.

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  2. By:rkensrud

    You should also add a “-E” to add the .html extension, and a “–auth-no-challenge” to get the inventory file rather than the login screen file.

    Additionally, there is a space between INVENTORY2 and the –no-check-certificate which is not in the example above.

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)

Comment

RSS