Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: mrn
  • Content: Threads
  • Order by date
  1. mrn

    Fuzzy?

    Anyone got any ideas on how to do a fuzzy type search on a string in ksh, without cutting the string up (too many naming variations) my script works when lsvg output like VOL_PROD_NO1_vg and vcs command produces VOL_PROD_NO1 but when lsvg produces something like VOL_PROD_NO1_vg...
  2. mrn

    VG corruption AIX 6.1 anyone else seen this.

    AIX 6100-03-03-0943 Any experienced this before LV_NAME TYPE LP PP PV LV STATE MOUNT POINT TEST01lv jfs2 4 4 1 open/syncd /test1 TEST02lv jfs2 84 84 1 open/syncd /test2 TEST03lv jfs2 160 157 4 open/syncd /test2 Note the LP PP on...
  3. mrn

    sed / awk / perl / other to get header info

    Hi All, I've got some data from an AIX HMC in the following format (All on one line)...
  4. mrn

    NR with $var?

    Is this possible? SPLIT=40 awk '{ if (NR % ${SPLIT}) printf ("%s #", $0) NR doesn't seem to like the Var $SPLIT I've seen examples like NR % V1 ; V1=$SPLIT but can't seem to get my head round it. Mike "Whenever I dwell for any length of time on my own shortcomings, they gradually...
  5. mrn

    awk fields

    Hi, I have a text file in the following format field1,field2,"fie,ld,3",field4,"fie,ld,5" I need to grab numerous fields from the file, but am struggling to find a way to protect the field-seperator if it appears in quotes. E.g awk -F, '{print $3}' I need "fie,ld,3" and not fie any...
  6. mrn

    Front-End Menus - Advice

    Hi I'm working on a front-end login menu system based on LDAP but am hitting a few problems. The process itself works if a user is in a particular netgroup they get a list of servers in that netgroup, if a users is in multiple netgroups, they get a list of servers from multiple netgroups, but...
  7. mrn

    Would you use it?

    Just tinkering around with a few ideas and wanted to get some feedback. How useful would it be to people to have remote access to a AIX / HP-UX / Solaris server as a sandbox. I have several servers laying about at home and was thinking about chucking them on the net and hiring them out (remote...
  8. mrn

    A better way!

    Hi, Can anyone think of a nicer way to do the following, I'm creating a lpar autobuild script, got to the point where I need to check if the lpar profile already exists, is it created in line with a config file, if it is let the scripts that follow run (Add vhost / rootvg), if not stop. Had a...
  9. mrn

    Expand hex list

    All, Got an interesting problem to deal with, I'm creating part of an autobuild script (in ksh). We receive a range of disk metas that will be assigned to a AIX vio server. 0733 - 07D4 I need a way of creating a list from the values above. I was thinking of converting them to dec then using...
  10. mrn

    FOA zaxxon

    Hi zaxxon, I appear to be having the same issues you had (re NFS) thread52-1447315 , did you manage to find a solution? Mike "Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the...
  11. mrn

    hanim

    Anyone using hanim? Got a problem when doing a nim -o takeover -a force=yes nim1 If it comes across a server that is not up it appears to hang forever, anyone know if there is a timeout option. Got a call open with IBM but they arn't being very helpful at the moment..... Mike "Whenever I...
  12. mrn

    Error on mklvcopy

    Bit of a strange one this. AIX 5.3 TL9 SP1 datavg datavg: LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT export_lv jfs2 1680 3360 6 open/syncd /export loglv00 jfs2log 1 2 2 open/syncd N/A cvsroot...
  13. mrn

    mirrorvg

    I'm in the process of planning to migrate from borrowed SAN disk to New SAN on a few of my server, I've though about serveral options available to me. 1. SAN Tools - Non Avaialble. 2. Multiple Copies in Parallel - A nightmare. 3. Migratepv / Replacepv - Horrible if it goes wrong. 4. mklvcopy /...
  14. mrn

    define Variables from file content.

    I have a file containing ENC0 ENC1 .... how would I read the file contents and assign each line to a variable? VAR1=ENC0 VAR2=ENC1 VAR3=..... The lines (enclosure type) vary depending on the SAN type, we could have more than two lines. I know I could use awk 'NR==1' awk 'NR==2' Mike...
  15. mrn

    Replace null char in variable

    How can I replace a null value within a variable? I know the var has a value set using if [ -z $ver ] ; then if [ $(ver+EMPTY} = EMPTY] ; then echo "var empty" else echo "var not set" fi else echo "var has value" fi but if I echo $ver > file the file appears empty. Ideas? Mike...
  16. mrn

    Monitoring VIO mirrors

    Quick question does anyone have any insights into monitoring disk mirrors on Dual VIO's Mike "Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's...
  17. mrn

    Extract data

    Hello all, I have the following data -------------------------------------- 10.0.193.1 Name: servername.company.com -------------------------------------- 10.0.193.2 No NS Record -------------------------------------- 10.0.193.3 No NS Record -------------------------------------- I'm...
  18. mrn

    Expect buffer

    I've got the following expect script #!/usr/local/bin/expect -f spawn telnet servera expect "Login:" send "username\r" expect "Password" send "password\r" expect "Enter Selection" send "1\r" expect "servera#" send "ls\r" set results $expect_out(buffer) send "exit\r" expect eof My question...
  19. mrn

    Formatting output

    I have a list P590-AAAc-123 P590-BBBcc-123 P520-CCCc-123 P590-DDDccc-123 P550-EEEc-123 That I would like to format the following way P590-AAAc-123 P590-BBBcc-123 P590-CCCc-123 P590-DDDccc-123 P590-EEEc-123 So far I've got $SSHU $HMC -l $HMCUSER lssyscfg -r sys | awk -F, '{print $1}'|sed...
  20. mrn

    VIO Vhost

    Anyone know if you can rename a vhost on a HMC, we seem to have a mis-match and rather than delete the virtual scsi details I wondered if they could just be re-named. E.g. vhost4 to vhost100? Mike "Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem...

Part and Inventory Search

Back
Top