
Solved!
Go to SolutionDevice operations using nsradmin
Hi , sometimes I need to provide device information to our monitoring system. So I write the script to query "name" and "enabled" attributes of NSR devices. This is a part of this script which forms input to nsradmin:
while read line
do
echo -e ' . name:'$line';type:NSR device'>inpnsradmin.txt
echo -e 'show name;enabled'>>inpnsradmin.txt
echo -e 'print'>>inpnsradmin.txt
nsradmin -i inpnsradmin.txt>>devsstate.txt
done
Device name is correct
But the results is:
Current query set
No resources found for query:
name: rd=devname/dev/rmt9.1;
type: NSR device;
When I try to do the same thing using nsradmin interface without script everything is OK
. name:"rd=devname:/dev/rmt9.1";type:NSR device
show name;enabled
nsradmin> print
name: "rd=devname:/dev/rmt9.1";
enabled: Yes;
Where I was wrong?
Thank you for your time
Responses (0)
Solutions (0)
