Having not used Win32::PerfLib before, I am curious about this snippet of code, but I don't quite understand what I need to pass in for $server. Are you looking for the IP? Or a machine name? or something else? Thanks.
You can pass either (machine name or IP). Try it, it is working here (I litteraly did a "cut-and-paste" from within my NT remote controlling project - yes, I actually wrote one).
gaggio,
i tried using your little tidbit and it is awesome. you rock! Being a beginner in perl, i was wondering if you know how to format the info displayed from the remote tlist?
Thanks in advance.
Ray
Well, you can simply use the printf function!
It is just like in C++.
Go to PerlDoc.com or simply type "printf" in the search box at the top of the page!
Printf should be used only if you really need to. Most of the formatting can be done with the print() function.
I'm getting:
Can't call method "GetObjectList" on an undefined value at RasUpload.pl line 68.
when using your sub and I have no idea why....any ideas?
doofie_dee@yahoo.com
I had this error when trying to connect using a Windows account that didn't have rights on the remote server.
However, running the script with a userid that can access the remote server gives you the full list.