Ok that is cool. I also tried the -Overwrite y command and that worked. Now i am just trying to figure out how i can run this thing once a day but not keep getting that same old data.
There is a -date (start_date end_date) argument but to use it i would have to keep adjusting the script daily...
Thats what i am trying to see if anyone knows. I know for retrieving analyzer files, they have a -file & -location parameter but i cant get those to work with the getlog command.
That argument is not in the CLI guide but when i do a getlog ?, it shows up and works. i was testing it by grabing a few dates at a time.
As for installing perl, the box it would need to be installed on also hosts SMC, SPA and the rest of our SAN managment software. So i am not sure if all that stuff works well together.
Plus the customer is looking for something that will give them events close to realtime and i dont think this way will work. They dont have ECC.
i have perl installed on boxes running ECC, SMC., SPA ..all get alone. If you need real time i guess you can configure emal alerts on the array itself ?
dynamox
9 Legend
•
20.4K Posts
0
July 20th, 2010 12:00
Can you redirect output from that command to a text file ?
kenn2347
3 Apprentice
•
542 Posts
0
July 20th, 2010 12:00
Ok that is cool. I also tried the -Overwrite y command and that worked. Now i am just trying to figure out how i can run this thing once a day but not keep getting that same old data.
There is a -date (start_date end_date) argument but to use it i would have to keep adjusting the script daily...
AranH1
2.2K Posts
0
July 20th, 2010 12:00
Nice, I didn't know that one
kenn2347
3 Apprentice
•
542 Posts
0
July 20th, 2010 12:00
Ok that worked:) I dont use CLI often so i dont know what all those keys do. looks like that > is what i need.
Thanks again guys
AranH1
2.2K Posts
1
July 20th, 2010 12:00
What dynamox meant was use an output modifier in your cli arguement.
if you use 'naviseccli -h SPA getlog -h -em > c:\event.txt' this will send the output to a text file and not display it in the cli window.
kenn2347
3 Apprentice
•
542 Posts
0
July 20th, 2010 12:00
Thats what i am trying to see if anyone knows. I know for retrieving analyzer files, they have a -file & -location parameter but i cant get those to work with the getlog command.
dynamox
9 Legend
•
20.4K Posts
0
July 20th, 2010 12:00
use >> if you need to append to an existing file.
kenn2347
3 Apprentice
•
542 Posts
0
July 20th, 2010 13:00
That argument is not in the CLI guide but when i do a getlog ?, it shows up and works. i was testing it by grabing a few dates at a time.
As for installing perl, the box it would need to be installed on also hosts SMC, SPA and the rest of our SAN managment software. So i am not sure if all that stuff works well together.
Plus the customer is looking for something that will give them events close to realtime and i dont think this way will work. They dont have ECC.
dynamox
9 Legend
•
20.4K Posts
0
July 20th, 2010 13:00
Kenn,
i just checked navicli guide and did not see that argument for getlog. Can you install perl on this box ..i can help you write something in perl ?
dynamox
9 Legend
•
20.4K Posts
0
July 20th, 2010 13:00
i have perl installed on boxes running ECC, SMC., SPA ..all get alone. If you need real time i guess you can configure emal alerts on the array itself ?
jpriceit
5 Posts
0
July 3rd, 2013 13:00
Sorry to bump an old thread but what syntax did you use for -date ?
christopher_ime
4 Operator
•
2K Posts
0
July 3rd, 2013 22:00
For example, to get the logs from yesterday 07/02/2013 00:00:00 to today 07/03/2013 (current or 23:59:59), the command would be:
naviseccli -h getlog -date 07/02/2013 07/04/2013
NOTE:
1) To get the logs from today 07/03/2013, you have to specify a day ahead: 07/04/2013 as the end date
2) You can't specify a specific time, just date