As was foretold, we've added advertisements to the forums! If you have questions, or if you encounter any bugs, please visit this thread: https://forums.penny-arcade.com/discussion/240191/forum-advertisement-faq-and-reports-thread/
We're funding a new Acquisitions Incorporated series on Kickstarter right now! Check it out at https://www.kickstarter.com/projects/pennyarcade/acquisitions-incorporated-the-series-2

[Sysadmin] Nightmare fuel

1777880828399

Posts

  • ArcSynArcSyn Registered User regular
    Oh, if you're outputting for a projector I would definitely recommend putting a video splitter or matrix in that line and split it to your production booth for long term sanity. That would definitely be the best option.

    4dm3dwuxq302.png
  • jungleroomxjungleroomx It's never too many graves, it's always not enough shovels Registered User regular
    edited April 2018
    Feral wrote: »
    bowen wrote: »
    Like are they digital signs or something? If they have their own PC why not write your own software/api to handle issuing commands and keep them dumb boxes?

    That's how we did it. They were dumb boxes completely locked down except for 1 website, and it wasn't even HTTP, and it didn't even have to be online once the content and templates are loaded.

    They just opened up 10 more doors to their entire domain.

    Are these boxes on their internal production LAN?

    Or are they VLAN segmented or on separate Internet connections or something like that?

    They wanted them on their live domain, same IP's, no segmentation.

    We would throw them on different router port to a switch, different network, etc.

    Some of our stuff uses WAP's with a SIM, some of them are on businesses internet connections. We prefer to have them exist outside of their infrastructure completely, which is why our boxes are receive only except for ping.

    jungleroomx on
  • electricitylikesmeelectricitylikesme Registered User regular
    I don't know how in the fuck this SG-200 thought it was running in link bonding mode, because my server certainly didn't agree with it. Switched off and back to ALB - small business level Cisco is a nightmare when it comes to this stuff.

  • wunderbarwunderbar What Have I Done? Registered User regular
    fridaze

    XBL: thewunderbar PSN: thewunderbar NNID: thewunderbar Steam: wunderbar87 Twitter: wunderbar
  • CogCog What'd you expect? Registered User regular
    I ran some FSRM reports today for a client who is running out of storage space on a 2TB VMware datastore that is their file server's data drive. It's basically full.

    Space wasted on duplicate files: 344 GB.

    Space consumed by files that have not been accessed in 90+ days: 1.8TB

    Honestly I imagine this is fairly normal for most companies, but it's pretty eye opening.

    Feral
  • RandomHajileRandomHajile Not actually a Snatcher The New KremlinRegistered User regular
    Cog wrote: »
    I ran some FSRM reports today for a client who is running out of storage space on a 2TB VMware datastore that is their file server's data drive. It's basically full.

    Space wasted on duplicate files: 344 GB.

    Space consumed by files that have not been accessed in 90+ days: 1.8TB

    Honestly I imagine this is fairly normal for most companies, but it's pretty eye opening.
    That last access date is not super-accurate, IIRC. I may be remembering a different attribute, though.

    FeralCog
  • CogCog What'd you expect? Registered User regular
    Cog wrote: »
    I ran some FSRM reports today for a client who is running out of storage space on a 2TB VMware datastore that is their file server's data drive. It's basically full.

    Space wasted on duplicate files: 344 GB.

    Space consumed by files that have not been accessed in 90+ days: 1.8TB

    Honestly I imagine this is fairly normal for most companies, but it's pretty eye opening.
    That last access date is not super-accurate, IIRC. I may be remembering a different attribute, though.

    It's not unless you're specifically indexing it, I'll tell them to take it with a boulder of salt.

    RandomHajile
  • CogCog What'd you expect? Registered User regular
    Working at a company with beer & pizza days is pretty boss, btw.

  • RandomHajileRandomHajile Not actually a Snatcher The New KremlinRegistered User regular
    Cog wrote: »
    Cog wrote: »
    I ran some FSRM reports today for a client who is running out of storage space on a 2TB VMware datastore that is their file server's data drive. It's basically full.

    Space wasted on duplicate files: 344 GB.

    Space consumed by files that have not been accessed in 90+ days: 1.8TB

    Honestly I imagine this is fairly normal for most companies, but it's pretty eye opening.
    That last access date is not super-accurate, IIRC. I may be remembering a different attribute, though.

    It's not unless you're specifically indexing it, I'll tell them to take it with a boulder of salt.
    It’s even messier if you use DFS-R like we do.

  • BucketmanBucketman Call me SkraggRegistered User regular
    I mentioned the other day I've been running into issues with Linux scripting, well I (mostly) figured out the previous questions I had, but I've been stumped on this one for a bit now. Its a fill in the blank assignment and while I got the other ones (I think) right, this one is giving me issue:
    Basically we need to create 3 different text files named for each of the stooges, "larry.txt", "curly.txt", and "moe.txt" and the assign each a number 1 2 or 3.

    The blanks we have are:
    #!/bin/bash
    num=1
    stooges=('larry' 'curly' 'moe')
       [a] name in ${[b]} ; [c]
           fname="${[d]}[h]"
           echo $num [e] ${[f]}
           [g]=$(($num + 1))
    done
    

    What I think I have so far is
    #!/bin/bash
    num=1
    stooges=('larry' 'curly' 'moe')
       [if] name in ${[b]} ; [c]
           fname="${[larry.txt, curly.txt, moe.txt]}[h]"
           echo $num [1] ${[3]}
           [then]=$(($num + 1))
    done
    

    So not crazy hard, but I would think you would use TOUCH to make a new file? I've been looking around online to find similar things but have come up short or with people saying "Thats the worst way to do this, do THIS instead" which doesn't help me much.

  • LD50LD50 Registered User regular
    Bucketman wrote: »
    I mentioned the other day I've been running into issues with Linux scripting, well I (mostly) figured out the previous questions I had, but I've been stumped on this one for a bit now. Its a fill in the blank assignment and while I got the other ones (I think) right, this one is giving me issue:
    Basically we need to create 3 different text files named for each of the stooges, "larry.txt", "curly.txt", and "moe.txt" and the assign each a number 1 2 or 3.

    The blanks we have are:
    #!/bin/bash
    num=1
    stooges=('larry' 'curly' 'moe')
       [a] name in ${[b]} ; [c]
           fname="${[d]}[h]"
           echo $num [e] ${[f]}
           [g]=$(($num + 1))
    done
    

    What I think I have so far is
    #!/bin/bash
    num=1
    stooges=('larry' 'curly' 'moe')
       [if] name in ${[b]} ; [c]
           fname="${[larry.txt, curly.txt, moe.txt]}[h]"
           echo $num [1] ${[3]}
           [then]=$(($num + 1))
    done
    

    So not crazy hard, but I would think you would use TOUCH to make a new file? I've been looking around online to find similar things but have come up short or with people saying "Thats the worst way to do this, do THIS instead" which doesn't help me much.

    So, I don't want to solve your problem for you, but I can give you a push in the right direction.

    'if' is not what you want for a. You need to assign files to all 3 names. Think about how you could do that using a single statement.
    Loops could do this. You might want to look up the different kind of loops bash supports

    'then' is wrong too. There's no 'if', so there won't be a 'then'. One you've figured out 'a', think about what the statement to the right side of the equals is doing, and try to reason from there.

    BucketmanDrovekInfidelbowenSeidkonaa5ehren
  • bowenbowen How you doin'? Registered User regular
    Well, if Bucket's teacher won't teach, we certainly can fill that gap.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
    RandomHajileBucketmanjungleroomxiTunesIsEvil
  • InfidelInfidel Heretic Registered User regular
    For the record, these madlibs are a terrible teaching method.

    Normally “don’t wanna do your homework” is a thing but you’re not gonna get an education unless it’s from us so.

    OrokosPA.png
    FeldorniTunesIsEvilApothe0sis
  • BucketmanBucketman Call me SkraggRegistered User regular
    edited April 2018
    Ahhh ok, I assumed it was an "if then" because all the other ones were, makes more sense that its a loop, ok so how would
    #!/bin/bash
    num=1
    stooges=('larry' 'curly' 'moe')
       for name in ${[fname]} ; [do]
           fname="${[stooges]}[<EXT .txt>]"
           echo $num [1..3] ${[cont]}
           [num]=$(($num + 1))
    done
    

    look as a start?

    Fname is throwing me off because its not one I've used before and I'm not finding a lot for it online anywhere, and its not listed in our books as a valid command which is great.

    I really do appreciate all the help you've giving me, its been...tough trying to figure it out.

    Also I am assuming its a for loop an not a while loop because the website he gave us to learn from had a bunch of For loops and only a single while loop

    Bucketman on
  • LD50LD50 Registered User regular
    You're on the right track, but you're still missing some things.

    fname is not a command. fname is a user declared variable (declared on the line 'fname=...'), similarly to how stooges is a variable.

    The for loop is in the right place, and so is the do (although the do shouldn't be in brackets anymore), but the fname in 'for name in fname' does not belong there (and will result in an error because fname technically doesn't exist yet).

    The next thing you should look in to is arrays, how to index them, and how looping over them works. A good crash course can be found here:

    http://stackabuse.com/array-loops-in-bash/

    The 'for loop', the 'arrays', and the 'looping over arrays' sections cover what you need to know for this problem.

    Bucketman
  • BucketmanBucketman Call me SkraggRegistered User regular
    edited April 2018
    Oh yeah, I just left the brackets to keep track of where the blanks where, also thank you for pointing out that fname is a variable...I spent a lot of time trying to figure out why the command wasn't working. I um...yeah I feel real dumb about that one.
    #!/bin/bash
    num=1
    stooges=('larry' 'curly' 'moe')
       for name in ${stooges[@]} ; do
           fname="${num}.txt"
           echo $num $name ${fname}
           num=$(($num + 1))
    done
    

    I almost have it. This gives me output of
    larry 1.txt
    curly 2.txt
    moe 3.txt
    

    Which is nearly there, but I need to swap the numbers and the .txt

    The exact question is
    The following script makes three files name "larry.txt", "curly.txt", and "moe.txt". Each gets a number: 1, 2, 3

    So I think the output should have the file types in the output

    Bucketman on
  • SiliconStewSiliconStew Registered User regular
    The concepts needed for that question are:
    FOR loops
    Assigning a value to a variable
    String concatenation
    Displaying text on the screen using the ECHO command
    Incrementing a variable

    Just remember that half the people you meet are below average intelligence.
  • BucketmanBucketman Call me SkraggRegistered User regular
    edited April 2018
    I think I have it...but I am missing something. The following code works:
    #!/bin/bash
    num=1
    stooges=('larry' 'curly' 'moe')
       for name in ${stooges[@]} ; do
           fname="${name}.txt"
           echo $num ${fname}
           num=$(($num + 1))
    done
    

    However, in my original question, there is an answer space in the echo line after $num and before ${fname} , though I have to wonder what goes there if I have a working code now.

    Again thanks for all the help, I feel very very accomplished working at this!

    Edit: Also, thank you all again for the help. Left to my own devices I've spent most of my free time the past week reading up on this and being totally lost. In a few hours and a couple of nudges in the right direction from you I now have a much better understanding of what I'm doing and actually have completed some of the scripting. Its honestly not much different then Java or Python coding, but I didn't get that for a hot minute.

    Bucketman on
  • Baron DirigibleBaron Dirigible Registered User regular
    Your code doesn't work -- you are missing something for that [e] madlib.

    Your script is supposed to create three files called larry.txt, curly.txt and moe.txt, and each file should have a number in it. Right now, if I run your script, it doesn't create any files -- instead, it outputs
    1 larry.txt
    2 curly.txt
    3 moe.txt
    

    to the command line.
    "echo" prints to stdout, eg the command line, by default. however, it's possible to "echo" things elsewhere.
    in your case, you want the echo command to print the number *into* a certain file
    all you need to do is put something into [e] in "echo $num [e] ${fname}" so that $num goes into the file $fname

    Bucketman
  • BucketmanBucketman Call me SkraggRegistered User regular
    edited April 2018
    Ah ok, I just need a > there then, I was thinking he wanted us to just have a number associated with each one.

    Bucketman on
  • LD50LD50 Registered User regular
    Bucketman wrote: »
    I think I have it...but I am missing something. The following code works:
    #!/bin/bash
    num=1
    stooges=('larry' 'curly' 'moe')
       for name in ${stooges[@]} ; do
           fname="${name}.txt"
           echo $num ${fname}
           num=$(($num + 1))
    done
    

    However, in my original question, there is an answer space in the echo line after $num and before ${fname} , though I have to wonder what goes there if I have a working code now.

    Again thanks for all the help, I feel very very accomplished working at this!

    Edit: Also, thank you all again for the help. Left to my own devices I've spent most of my free time the past week reading up on this and being totally lost. In a few hours and a couple of nudges in the right direction from you I now have a much better understanding of what I'm doing and actually have completed some of the scripting. Its honestly not much different then Java or Python coding, but I didn't get that for a hot minute.

    Yup. Bash is a full scripting language. Same as Python, or Ruby, or whatever. Bash just also happens to be the CLI.

  • BucketmanBucketman Call me SkraggRegistered User regular
    Epilogue: I only missed 6 points on the whole assignment, and got the one you guys helped with 100% right.

    So, thanks everyone! I owe you a coke

    LD50jungleroomxDrovekShadowfireBaron DirigibleInfidelDonovan PuppyfuckerFeldornInquisitor77iTunesIsEvilFleeb
  • CogCog What'd you expect? Registered User regular
    edited April 2018
    This scripting stuff has reminded me that Human Resource Machine is a kickass game about programming and scripting in a delightful dystopia wrapper.

    https://www.youtube.com/watch?v=428R_oEjGGI

    Cog on
    SeidkonaArcSyn
  • wunderbarwunderbar What Have I Done? Registered User regular
    really good start to set up the trial of $softwarething that we are testing

    em67kudris01.png

    XBL: thewunderbar PSN: thewunderbar NNID: thewunderbar Steam: wunderbar87 Twitter: wunderbar
    SeidkonaDrovekThawmusNaphtaliShadowfireFeral
  • DrovekDrovek Registered User regular
    wunderbar wrote: »
    really good start to set up the trial of $softwarething that we are testing

    em67kudris01.png

    Have you... have you tried using 'Invalid' as a code?

    steam_sig.png( < . . .
    ThawmusCogInfidelBaron DirigibleBucketman
  • CogCog What'd you expect? Registered User regular
    Drovek wrote: »
    wunderbar wrote: »
    really good start to set up the trial of $softwarething that we are testing

    em67kudris01.png

    Have you... have you tried using 'Invalid' as a code?

    Or maybe reading the install guide SUCK IT HOW DOES THAT FEEL

    InfidelFeralbowenMugsleyiTunesIsEvilMvrckDarkewolfejungleroomxDonovan PuppyfuckerBucketmanAegis
  • NaphtaliNaphtali Hazy + Flow SeaRegistered User regular
    is that some kind of alienware software?

    Steam | Nintendo ID: Naphtali | Wish List
    DrovekiTunesIsEvilDonovan PuppyfuckerBucketman
  • InfidelInfidel Heretic Registered User regular
    wunderbar wrote: »
    really good start to set up the trial of $softwarething that we are testing

    em67kudris01.png

    It's a randomly generated base64 string!

    You just got lucky(?)

    OrokosPA.png
    iTunesIsEvil
  • SeidkonaSeidkona Had an upgrade Registered User regular
    Cog wrote: »
    Drovek wrote: »
    wunderbar wrote: »
    really good start to set up the trial of $softwarething that we are testing

    em67kudris01.png

    Have you... have you tried using 'Invalid' as a code?

    Or maybe reading the install guide SUCK IT HOW DOES THAT FEEL

    Good?

    One of us.

    Mostly just huntin' monsters.
    XBL:Phenyhelm - 3DS:Phenyhelm
    LD50
  • wunderbarwunderbar What Have I Done? Registered User regular
    hahaha, I actually did try invalid as a code, and it did not work. :rotate:

    XBL: thewunderbar PSN: thewunderbar NNID: thewunderbar Steam: wunderbar87 Twitter: wunderbar
  • wunderbarwunderbar What Have I Done? Registered User regular
    Cog wrote: »
    Drovek wrote: »
    wunderbar wrote: »
    really good start to set up the trial of $softwarething that we are testing

    em67kudris01.png

    Have you... have you tried using 'Invalid' as a code?

    Or maybe reading the install guide SUCK IT HOW DOES THAT FEEL

    Don't you have some headlights to go stare at?

    XBL: thewunderbar PSN: thewunderbar NNID: thewunderbar Steam: wunderbar87 Twitter: wunderbar
  • FeralFeral MEMETICHARIZARD interior crocodile alligator ⇔ ǝɹʇɐǝɥʇ ǝᴉʌoɯ ʇǝloɹʌǝɥɔ ɐ ǝʌᴉɹp ᴉRegistered User regular
    You, a plebian: "Our SQL034 server is slow. Anybody know why?"

    Me, an intellectual: "According to the database stats, this query (query text) has run 3.1 million times in the last 24 hours, consuming 80% of total CPU time and generating 12.7 million I/O calls to storage."

    I'm not a SQL admin and that server isn't one that I manage. I'm just really tired of IT "professionals" who report vague problems without bothering to do any investigation.

    every person who doesn't like an acquired taste always seems to think everyone who likes it is faking it. it should be an official fallacy.

    the "no true scotch man" fallacy.
    InfidelSeidkonaFeldorna5ehrenEchoBucketmanApothe0sis
  • SiliconStewSiliconStew Registered User regular
    Feral wrote: »
    You, a plebian: "Our SQL034 server is slow. Anybody know why?"

    Me, an intellectual: "According to the database stats, this query (query text) has run 3.1 million times in the last 24 hours, consuming 80% of total CPU time and generating 12.7 million I/O calls to storage."

    I'm not a SQL admin and that server isn't one that I manage. I'm just really tired of IT "professionals" who report vague problems without bothering to do any investigation.

    Dev: Our app is slow, so it must be a problem with the network.
    Me: Well, looks like you're basically doing db calls one row at a time. Guess what happens when you multiply round-trip-time by rows?

    Just remember that half the people you meet are below average intelligence.
    FeralBucketman
  • CogCog What'd you expect? Registered User regular
    Feral wrote: »
    You, a plebian: "Our SQL034 server is slow. Anybody know why?"

    Me, an intellectual: "According to the database stats, this query (query text) has run 3.1 million times in the last 24 hours, consuming 80% of total CPU time and generating 12.7 million I/O calls to storage."

    I'm not a SQL admin and that server isn't one that I manage. I'm just really tired of IT "professionals" who report vague problems without bothering to do any investigation.

    Dev: Our app is slow, so it must be a problem with the network.
    Me: Well, looks like you're basically doing db calls one row at a time. Guess what happens when you multiply round-trip-time by rows?

    I believe the term is RBAR.

    Row By Agonizing Row.

    DrovekFeralwunderbarDonovan PuppyfuckerBucketman
  • XaviarXaviar Registered User regular
    I'm too lazy to try on my own, but since windows 10 safe boot minimal/networking and alternate shell are two separate bcd flags, you could manually make a bcd entry that was safe+networking+command prompt.

    Would it actually load as expected?

  • FeralFeral MEMETICHARIZARD interior crocodile alligator ⇔ ǝɹʇɐǝɥʇ ǝᴉʌoɯ ʇǝloɹʌǝɥɔ ɐ ǝʌᴉɹp ᴉRegistered User regular
    Feral wrote: »
    You, a plebian: "Our SQL034 server is slow. Anybody know why?"

    Me, an intellectual: "According to the database stats, this query (query text) has run 3.1 million times in the last 24 hours, consuming 80% of total CPU time and generating 12.7 million I/O calls to storage."

    I'm not a SQL admin and that server isn't one that I manage. I'm just really tired of IT "professionals" who report vague problems without bothering to do any investigation.

    Dev: Our app is slow, so it must be a problem with the network.
    Me: Well, looks like you're basically doing db calls one row at a time. Guess what happens when you multiply round-trip-time by rows?

    I did exactly this for our data analytics team.

    Their reporting tool was exporting an enormous CSV to an SMB share.

    Wireshark showed that the software opened an SMB session, wrote a row, closed the SMB session, then opened a new SMB session, etc. for each row.

    I helped them reconfigure their software to generate the CSV in a temp folder first and it cut down the report generation from four hours to one hour.

    every person who doesn't like an acquired taste always seems to think everyone who likes it is faking it. it should be an official fallacy.

    the "no true scotch man" fallacy.
  • FeralFeral MEMETICHARIZARD interior crocodile alligator ⇔ ǝɹʇɐǝɥʇ ǝᴉʌoɯ ʇǝloɹʌǝɥɔ ɐ ǝʌᴉɹp ᴉRegistered User regular
    Semi-relatedly, if one more person hands me an IP address on a Post-It note and asks me verbally "Is this open on the firewall?" I'm going to shank a motherfucker.

    every person who doesn't like an acquired taste always seems to think everyone who likes it is faking it. it should be an official fallacy.

    the "no true scotch man" fallacy.
  • bowenbowen How you doin'? Registered User regular
    Feral wrote: »
    Semi-relatedly, if one more person hands me an IP address on a Post-It note and asks me verbally "Is this open on the firewall?" I'm going to shank a motherfucker.

    "I don't know what that is"

    "it's an ip address"

    "is it?"

    gaslight them!

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
    FeralThawmusjungleroomxDrovekSeidkonaDarkewolfeCogDonovan PuppyfuckerBucketmanApothe0sis
  • jungleroomxjungleroomx It's never too many graves, it's always not enough shovels Registered User regular
    bowen wrote: »
    Feral wrote: »
    Semi-relatedly, if one more person hands me an IP address on a Post-It note and asks me verbally "Is this open on the firewall?" I'm going to shank a motherfucker.

    "I don't know what that is"

    "it's an ip address"

    "is it?"

    gaslight them!

    "Translate it to ipv6 or kick rocks."

    Donovan Puppyfucker
  • FeldornFeldorn Mediocre Registered User regular
    we get a lot of network blame.

    Sometimes it is a speed/duplex mismatch, but it’s usually rubbish software

    Feral
This discussion has been closed.