1847235 Members
2733 Online
110263 Solutions
New Discussion

ioscan

 
SOLVED
Go to solution
Donald Thaler
Super Advisor

ioscan

Is this the correct syntax for ioscan:

ioscan -fnC tape>ioscan_tape.txt

ioscan -fnC all>ioscan_all.txt ( i want all the devices )
7 REPLIES 7
Pete Randall
Outstanding Contributor
Solution

Re: ioscan

For you second one (all devices), you can leave off the "C" and the "all".


Pete

Pete
Murat SULUHAN
Honored Contributor

Re: ioscan

Hi Donald

for tape devices your syntax is right but you don't need "C" and device type argument for all devices I mean ioscan -fn > ioscan_all.txt is enough

Best Regards
Murat
Murat Suluhan
Sp4admin
Trusted Contributor

Re: ioscan


You can do a "man ioscan".

example: For tape/LAN devices

ioscan -fnC tape

ioscan -fnc lan

sp,
Donald Thaler
Super Advisor

Re: ioscan

why do i get :
'Can't open tape: No such file or directory'-

when doing the ioscan -fnC tape
Donald Thaler
Super Advisor

Re: ioscan

if i leave out the redirection it works ???

i.e ioscan -fnC tape (displays on console)
A. Clay Stephenson
Acclaimed Contributor

Re: ioscan

You errors probably stem from a shell parsing problem. By any chance have you changed the IFS or are you trying to use that world's greatest shell that is so popular with them Linux folks?

Try this syntax (spaces and all):

ioscan -C tape -fn > /tmp/myfile

and if if fails, post the exact error.
If it ain't broke, I can fix that.
Murat SULUHAN
Honored Contributor

Re: ioscan

Hi Donald

What is the output of ioscan -fnC tape ?
How did you use the redirection ? Please submit full command line.

Best Regards
Murat
Murat Suluhan